package com.langsin.blog.service;

import com.langsin.blog.domain.Roles;
import com.langsin.blog.domain.User;

public interface UserService {
    /**
     * 登录验证
     * @param account
     * @param password
     * @return 1:login success  0:password error  -1:account !exist
     */
    int loginCheck(String account,String password);
    boolean registCheck(String account, String password, String nickname, String email, String roles);
    boolean userModify(String account,String prop,String value);
    User userGet(String account);
    boolean userExist(String account);
}
